package servlet;

import bean.User;
import com.google.gson.Gson;

public class Test {

    public static void main(String[] args) {
        Gson gson = new Gson();
        User king = new User(100, "king", "666", "king@sohu.com");

        String json = gson.toJson(king);
        System.out.println(json);
    }
}
